#  Copyright (C) 2021  Ivan Polyakov
#
#  This file is part of fltube.
#
#  fltube is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  fltube is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#   
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <https://www.gnu.org/licenses/>.

AC_INIT([fltube], [0.1], [bug@fltube.org])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CXX
AC_CONFIG_HEADERS([config/project.config.h])
AC_CONFIG_FILES([
    Makefile
    src/Makefile
    po/Makefile.in
])


AC_CHECK_PROGS([MPV], [mpv])
if test -z "$MPV"; then
    AC_MSG_ERROR([mpv not found])
fi


AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.20)


DX_DOXYGEN_FEATURE(ON)
DX_DOT_FEATURE(ON)
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(ON)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN([AC_PACKAGE_NAME], docs/Doxyfile, docs/dist)


AC_OUTPUT
